package top.psjj.news.web;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Auther:小陈的Java
 */
@WebServlet("/main")
public class MainServlet extends BasicServlet{
    private String basicUrl = "/WEB-INF/jsp/main/";
    public void mainUI(HttpServletRequest req, HttpServletResponse resp) throws  Exception{
        req.setAttribute("mainPage","default.jsp");
        req.getRequestDispatcher(basicUrl+"mainTemp.jsp").forward(req,resp);
    }
}
